package com.ebelter.nb.model.dao;




import com.ebelter.btcomlib.models.bluetooth.products.nb.BondDevices;
import com.ebelter.btcomlib.models.bluetooth.products.nb.BondDevices_Table;
import com.raizlabs.android.dbflow.sql.language.Delete;
import com.raizlabs.android.dbflow.sql.language.Select;

import java.util.List;


public class DbUtils {


    public static void deleteTable(Class clz){
        Delete.table(clz);//删除整张表
    }


    public static List<BondDevices> queryBondedDevices(String user_id){
        return new Select().from(BondDevices.class).where(BondDevices_Table.user_id.eq(user_id)).queryList();
    }





}
